package com.wdb.user.service;

import com.wdb.user.fallback.UserFallback;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "com-wdb-user",fallback = UserFallback.class)
public interface UserService {

    @GetMapping("/user")
    String getUserName(@RequestParam("id")Integer id);

}
